package com.micro.glszh.stat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.micro.glszh.stat.domain.BizBaseRecord;
import com.micro.glszh.stat.domain.dto.RecordDto;
import com.micro.glszh.stat.utils.PageResult;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;
import java.util.Map;

/**
 * todo
 *
 * @Author gaopengfei
 * @create 2024/10/21 15:53
 */

public interface BizBaseRecordService extends IService<BizBaseRecord> {

    Boolean insertOrUpdateRecord(RecordDto record);

    List<BizBaseRecord> selectRecordByDateTime(String dateTime);

    PageResult<Map<String, Object>> list(String dateTime, Integer page, Integer size);

    void downloadRecordByDateTime(String dateTime, HttpServletResponse response);

    BizBaseRecord selectRecordLatest();
}
